package com.bear.newsset.dao.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class NewsLikeSqlEntity {
    @Id(autoincrement = true)
    private Long id;
    private String account;
    @Unique
    private String newsId;
    private boolean isHistory;      //是否看过（历史）
    private boolean isGiveLike;     //是否喜欢
    private boolean isCollect;      //是否收藏
    private boolean isShare;        //是否分享
    private long createTimeStamp;   //创建时间戳
    @Generated(hash = 1612396294)
    public NewsLikeSqlEntity(Long id, String account, String newsId,
            boolean isHistory, boolean isGiveLike, boolean isCollect,
            boolean isShare, long createTimeStamp) {
        this.id = id;
        this.account = account;
        this.newsId = newsId;
        this.isHistory = isHistory;
        this.isGiveLike = isGiveLike;
        this.isCollect = isCollect;
        this.isShare = isShare;
        this.createTimeStamp = createTimeStamp;
    }
    @Generated(hash = 1028219919)
    public NewsLikeSqlEntity() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getAccount() {
        return this.account;
    }
    public void setAccount(String account) {
        this.account = account;
    }
    public String getNewsId() {
        return this.newsId;
    }
    public void setNewsId(String newsId) {
        this.newsId = newsId;
    }
    public boolean getIsHistory() {
        return this.isHistory;
    }
    public void setIsHistory(boolean isHistory) {
        this.isHistory = isHistory;
    }
    public boolean getIsGiveLike() {
        return this.isGiveLike;
    }
    public void setIsGiveLike(boolean isGiveLike) {
        this.isGiveLike = isGiveLike;
    }
    public boolean getIsCollect() {
        return this.isCollect;
    }
    public void setIsCollect(boolean isCollect) {
        this.isCollect = isCollect;
    }
    public boolean getIsShare() {
        return this.isShare;
    }
    public void setIsShare(boolean isShare) {
        this.isShare = isShare;
    }
    public long getCreateTimeStamp() {
        return this.createTimeStamp;
    }
    public void setCreateTimeStamp(long createTimeStamp) {
        this.createTimeStamp = createTimeStamp;
    }
}
